package com.acme;

import com.acme.bankapp.domain.bank.Bank;
import com.acme.bankapp.domain.bank.Client;
import com.acme.bankapp.service.bank.BankService;
import com.acme.bankapp.service.bank.CheckingAccount;
import com.acme.bankapp.service.bank.Gender;
import com.acme.bankapp.service.bank.SavingAccount;

public class BankApplication {
	public void modifyBank(Bank bank){
		bank.getClient(0).getAcc().deposit(69.33);
	}
	public static void main(String[] args) {
		Bank bank=new Bank();
		BankService	bankserv=new BankService();
		
		Client cl1=new Client("Petrov",Gender.MALE,45);
		Client cl2=new Client("Petrova",Gender.FEMALE,45);
		
		cl1.setAcc(new SavingAccount(200.60));
		cl2.setAcc(new CheckingAccount(200.60,100));
		
		bankserv.addClient(bank,cl1);
		bankserv.addClient(bank,cl2);
	}

}
